package com.es.spring_es.rabbitmq.msg;

import java.io.Serializable;


public class MqMsg implements Serializable {
    private int code;
    private String message;
    private Object data;

    public void setData(Object object) {
        this.data = object;
    }

    public void setMsg(int code,String message){
        this.code=code;
        this.message=message;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    @Override
    public String toString() {
        return "MqMsg{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
